// 消息 - 里面的预警处理
import { dialog } from '@gis/lib/components/antd-dialog';

export function openMsgWarnHandleDialog(contentPro, dialogPro) {
  return new Promise((resolve, reject) => {
    dialog({
      content: () => import('./warn-handle-dialog.vue'),
      contentProps: {
        ...contentPro,
      },
      dialogProps: {
        ...dialogPro,
        onOk: () => resolve(true),
        onCancel: () => resolve('错误'),
      },
    });
  });
}
